#include <stdio.h>
#include <stdlib.h>
#include "Includes/Color.h"
#include "Includes/Matrix.h"
#include "Includes/Triangle.h"
#include "Includes/Defines.h"
#include "Includes/Rectangle.h"
#include "Includes/Surface.h"
#include "Includes/Context.h"
#include "Includes/Driver.h"
#include <unistd.h>

/// <summary>
/// TODO
/// </summary>
int GalFillTriangle(ContextPtr ctx, TrianglePtr triangle)
{
	if (ctx == NULL)
		return -1;

	if (triangle == NULL)
		return -1;

	SurfacePtr surface;
	if (!(surface = ctx->buffer))
		return -2;

	unsigned char* data;
	if (!(data = (unsigned char*)surface->data))
		return -2;

	return 0;
}
